package com.lzh.dlykserver.mapper;

import com.lzh.dlykserver.entity.TProduct;
import com.lzh.dlykserver.query.ProductQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 墨墨
 * @description 针对表【t_product(产品表)】的数据库操作Mapper
 * @createDate 2024-07-24 09:57:15
 * @Entity com.lzh.dlykserver.entity.TProduct
 */
public interface TProductMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TProduct record);

    int insertSelective(TProduct record);

    TProduct selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TProduct record);

    int updateByPrimaryKey(TProduct record);

    List<TProduct> selectAllOnSaleProduct();

    List<TProduct> getProducts(ProductQuery productQuery);

    int batchDeleteProduct(@Param("idList") List<String> idList);
}
